<?php
namespace Admin\Controller;
class PositionCateController extends CommonController {
    public function _initialize() {
		parent::_initialize();
        $this->_mod = D('PositionCate');
    }

public function _before_index(){
    $big_menu = array(
        'title' => '添加推荐位',
        'iframe' => U('PositionCate/add'),
        'id' => 'add',
        'width' => '500',
        'height' => '360'
    );
    $this->_ajaxedit = true;
    $this->_data = array(
        'listinfo'    => array(
            'c' => 'Position',
            'a' => 'index',
            'str'    => '<a href="%s">信息管理</a>',
            'param' => array('cate_id'=>'@id@'),
            'isajax' => 0,
            'replace'=> ''
        ),
    );
    $this->assign('big_menu',$big_menu);
}
    public function _before_add(){
        $this->assign('model',getModel());
    }
    public function _before_edit(){
        $this->_before_add();
    }
}